REPLICATION MATERIALS FOR:

Party Competition and Cooperation Shape Affective Polarization:Evidence from Natural and Survey Experiments in Israel


OVERVIEW
This folder contains all necessary data and r scripts to create tables and figures from the main text and appendix.



STUDY I:
Materials: 
1. R Project for all analyses: Data.Rproj
2. Script that downloads INES data (waves 2001, 2003, 2006, 2009, 2013, 2015, 2019) into the "RAW Data/INES/" directory: download_raw_INES.R
	a. INES raw data used for study I can be downloaded directly via: https://www.tau.ac.il/~ines/elections.html. However, our script (download_raw_INES.R) downloads and unzips all necessary files, and places them in a suitable directory. Once files are downloaded to this directory (Raw Data/INES), they can be cleaned with the following script: clean_INES.R
3. Script to compile clean data: clean_INES.R
	a. This script creates the clean data used for our analysis ("ines_master.csv"), and saves this clean data in the following directory: "Data for analysis/ines_master.csv"
5. Script to analyze clean data: analyze_INES.R


Variables for analysis study I:
party_polar -- Main outcome 
party_polar1 -- Alternative measure
party_affect -- out-party affect 
in_party_affect -- in-party affect
knowledge -- Success in knowledge question (Mechanism)
turnout -- intend to vote in upcoming election (Mechanism)
politc_conv -- engage in political conversation (Mechanism)
age -- age variable
female -- female variable
Secular -- dummy for secular subjects
Traditional -- dummy for traditional subjects
Religious -- dummy for religious subjects
V_Religous -- dummy for very religious subjects
Spending_WBA -- dummy for spending well below average
Spending_BA -- dummy for spending below average
Spending_A -- dummy for spending average
Spending_AA -- dummy for spending above average
Spending_WAA --  dummy for spending well above average
Less_hs -- dummy for education less than high school 
HS -- dummy for education high school 
Academic -- dummy for education academic
ashkenazi -- dummy for ashkenazi



STUDY II:
Materials: 
1. Raw data from survey experiment ("Raw Data/Survey/data_oct21.csv")
	a. Data includes original INES documentation 
2. R Project for all analyses: Data.Rproj
3. Script to clean data: clean_Survey.R
4. Clean data for analyses ("Data for analysis/Survey_analysis.csv")
5. Script to analyze clean data: analyze_Survey.R              


Variables for analysis study II: 
female 
male 
age_a -- dummy for respondents age 18-22
age_b -- dummy for respondents age 23-29
age_c -- dummy for respondents age 30-39
age_d -- dummy for respondents age 40-49
age_e -- dummy for respondents age 50-70
ethnicity_a -- dummy for Ashkenazi respondents
ethnicity_b -- dummy for Mizrachi respondents
ethnicity_c -- dummy for Russian respondents
ethnicity_d -- dummy for Ethiopian respondents
ethnicity_e -- dummy for Other ethnicity respondents
religiosity_a -- dummy for secular respondents
religiosity_b -- dummy for traditional respondents
religiosity_c -- dummy for religious respondents
religiosity_d -- dummy for hared respondents
locality_a -- dummy for respondents from Jerusalem area
locality_b -- dummy for respondents from Tel-Aviv area
locality_c -- dummy for respondents from Northern area
locality_d -- dummy for respondents from Southern area
locality_e -- dummy for respondents from Sharon area
manipulation_check_1 -- respondents' evaluation regarding probability that unity government will form in the near future
general_therm_polar_nc -- polarization measured via thermometer (centrist voters omitted) general_socd_polar_nc -- polarization measured via social distance scale (centrist voters omitted)  
general_therm_nc -- affect out-party (no center)
eneral_therm_nc_in -- affect in-party (no center)
general_socd_nc -- social distance out-party (no-center)
general_socd_nc_in -- -- social distance in-party (no-center)




